#ifndef BASEDELEGATE_H
#define BASEDELEGATE_H

#include <QObject>
#include <QAbstractItemDelegate>

class BaseDelegate:public QAbstractItemDelegate
{
public:
    explicit BaseDelegate(QObject* parent=0);

    // QAbstractItemDelegate interface
public:
    virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
};

#endif // BASEDELEGATE_H
